﻿<Window x:Class="Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="OnFly Calculator" Height="646" Width="490" Icon="calculator.ico">
    <Window.Resources>
        <LinearGradientBrush x:Key="Brush1" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFFFFFF" Offset="0.0"/>
            <GradientStop Color="#FF8DCEF4" Offset="0.9"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="Brush2" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFFFFFF" Offset="0"/>
            <GradientStop Color="#FFADCEF4" Offset="1"/>
        </LinearGradientBrush>
    </Window.Resources>
    
    <Grid Name="Grid1" Style="{DynamicResource BackgroundStyle}">
        <Border Height="33" Margin="10,145,160,0" Name="Border2" VerticalAlignment="Top" CornerRadius="5,5,5,5" BorderThickness="1" Style="{DynamicResource BorderStyle}" />
        <Border Height="33" Margin="10,63,160,0" Name="Border1" VerticalAlignment="Top" CornerRadius="5,5,5,5" BorderThickness="1" Style="{DynamicResource BorderStyle}" />
        <Border Height="191" Margin="10,0,16,38" Name="Border3"
                BorderThickness="1"
                VerticalAlignment="Bottom"
                CornerRadius="5,5,5,5"
                Style="{DynamicResource BorderStyle}"/>
        
        <Image Margin="0,0,0,-1" Name="Image1" Stretch="Fill" />
        <Menu Margin="24,0,26,174" Name="Menu1"
              Height="20" VerticalAlignment="Bottom"
              Style="{DynamicResource MenuStyle}">
            
            <MenuItem Name="mnuFile" Header="File" Background="Transparent" Style="{DynamicResource MenuItemStyle}">
                <MenuItem Header="Open..." Name="mnuOpen" />
                <MenuItem Header="Save..." Name="mnuSave" />
                    <Separator>
                       
                    </Separator>
                <MenuItem Header="New project" Name="mnuNewProject"
                          Click="mnuNewProject_Click" />
                <Separator />
                <MenuItem Header="Load project" Name="mnuOpenProject" />
                <Separator />
                <MenuItem Header="Save project" Name="mnuSaveProject" />
                <MenuItem Header="Save project as..." Name="mnuSaveProjectAs" 
                          Click="mnuSaveProjectAs_Click" />
                
            </MenuItem>
            <MenuItem Name="mnuEjecucion" Header="Compile" Background="Transparent" >
                <MenuItem Header="Run" Name="mnuEjecutar" />
                <MenuItem Header="Error console" Name="mnuConsole" />
                <Separator>
                   
                </Separator >
                <MenuItem Header="References" Name="MenuRefs" />
                <MenuItem Header="Resources" Name="mnuResources" />
                <Separator >
                    
                  </Separator> 
                <MenuItem Header="Compile form C#" Name="mnuCompileFromCS" />
                <MenuItem Header="Compile form VB.NET" Name="mnuCompileFromVB" />
            </MenuItem>
            <MenuItem Name="Options" Header="Options" Background="Transparent">
                <MenuItem Header="Background color" Name="mnuBackGround" />
                <MenuItem Header="Foreground color" Name="mnuForeGround" />
                <MenuItem Header="Font..." Name="FontPropertys" />
                <Separator />
                <MenuItem Header="Skin" Name="mnuSkin" />
            </MenuItem>
            <MenuItem Name="hlp" Header="Help" Visibility="Visible" Background="Transparent">
                <MenuItem Name="mnuHlp_FindHelp" Header="Find Help" Click="mnuHlp_FindHelp_Click"></MenuItem>
                <MenuItem Name="mnuHlp_AboutOFC" Header="About OnFly Calculator" Click="mnuHlp_AboutOFC_Click"></MenuItem>
                <Separator />
                <MenuItem Name="mnuHelp_AboutScript" Header="About script" Click="mnuHelp_AboutScript_Click" />
                <MenuItem Name="mnuHelp_HelpforScript" Header="Help for script" Click="mnuHelp_HelpforScript_Click" />
                
            </MenuItem>
        </Menu>
        <TextBox Height="20"
                 Margin="35,69,162,0"
                 Name="TextBox2"
                 VerticalAlignment="Top"
                 Style="{DynamicResource TextBoxStyle}" />
        <TextBox Height="20"
                 Margin="35,151,162,0"
                 Name="TextBox3"
                 VerticalAlignment="Top"
                 Style="{DynamicResource TextBoxStyle}" />
        <ComboBox Height="30" Margin="10,105,164,0" Name="ComboBox1" VerticalAlignment="Top" FlowDirection="RightToLeft" Style="{DynamicResource ComboBoxStyle}">
            <ComboBox.BindingGroup>
                <BindingGroup Name="{x:Null}" NotifyOnValidationError="False" />
            </ComboBox.BindingGroup>
            <ComboBox.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="Addition" Name="cmnuSumar"/>
                    <MenuItem Header="Diference" Name="cmnuRestar"/>
                    <MenuItem Header="Multiplicate" Name="cmnuMultiplicar"/>
                    <MenuItem Header="Divide" Name="cmnuDividir"/>
                    <Separator />
                    <MenuItem Header="Install script" Name="mnuInstallScript"/>
                    <MenuItem Header="Scripts folder" Name="mnuviewscripts"/>
                </ContextMenu>
            </ComboBox.ContextMenu>
            <ComboBoxItem>Addition</ComboBoxItem>
            <ComboBoxItem>Diference</ComboBoxItem>
            <ComboBoxItem>Multiplicate</ComboBoxItem>
            <ComboBoxItem>Divide</ComboBoxItem>
        </ComboBox>
        <Button Height="25"
                HorizontalAlignment="Left"
                Margin="78,198,0,0"
                Name="Button1"
                VerticalAlignment="Top"
                Width="69"
                Style="{DynamicResource ButtonStyle}"
                >
            Make
        </Button>
        <Label Margin="14,0,17,200" Name="Label1" Height="26" VerticalAlignment="Bottom">Editing:</Label>
        <TextBox
            Margin="12,0,26,47"
            Name="TextBox1"
            AcceptsReturn="True"
            TextWrapping="Wrap"
            VerticalScrollBarVisibility="Auto"
            Height="121"
            VerticalAlignment="Bottom"
            Style="{DynamicResource TextBoxStyle}" AcceptsTab="True" />
        <Label
            Height="28"
            Margin="14,0,12,3"
            Name="Label2"
            VerticalAlignment="Bottom"
            Style="{DynamicResource LabelStyle}">
            Opacity:
        </Label>
        
        <Slider Height="29"
                Margin="0,0,22,-1"
                Name="Slider1"
                VerticalAlignment="Bottom"
                HorizontalAlignment="Right"
                Width="166" Value="100"
                Maximum="100"
                Minimum="30"
                Style="{DynamicResource SliderStyle}"/>
        
        <Canvas Height="126" HorizontalAlignment="Right" Margin="0,64,14,0" Name="Canvas1" VerticalAlignment="Top" Width="108">
            <Button Style="{DynamicResource ButtonStyle}" Canvas.Left="8" Canvas.Top="6" Height="21" Name="Button2" Width="25">7</Button>
            <Button Style="{DynamicResource ButtonStyle}" Canvas.Left="38" Canvas.Top="6" Height="21" Name="Button3" Width="25">8</Button>
            <Button Style="{DynamicResource ButtonStyle}" Canvas.Left="71" Canvas.Top="6" Height="21" Name="Button4" Width="25">9</Button>
            <Button Style="{DynamicResource ButtonStyle}" Canvas.Left="8" Canvas.Top="36" Height="21" Name="Button5" Width="25">4</Button>
            <Button Style="{DynamicResource ButtonStyle}" Canvas.Left="38" Canvas.Top="36" Height="21" Name="Button6" Width="25">5</Button>
            <Button Style="{DynamicResource ButtonStyle}" Canvas.Left="71" Canvas.Top="36" Height="21" Name="Button7" Width="25">6</Button>
            <Button Style="{DynamicResource ButtonStyle}" Canvas.Left="8" Canvas.Top="68" Height="21" Name="Button8" Width="25">1</Button>
            <Button Style="{DynamicResource ButtonStyle}" Canvas.Left="38" Canvas.Top="68" Height="21" Name="Button9" Width="25">2</Button>
            <Button Style="{DynamicResource ButtonStyle}" Canvas.Left="71" Canvas.Top="68" Height="21" Name="Button10" Width="25">3</Button>
            <Button Style="{DynamicResource ButtonStyle}" Canvas.Left="38" Canvas.Top="99" Height="21" Name="Button12" Width="25">0</Button>
            <Button Style="{DynamicResource ButtonStyle}" Canvas.Left="71" Canvas.Top="99" Height="21" Name="Button11" Width="25">C</Button>
            <Button Style="{DynamicResource ButtonStyle}" Canvas.Left="8" Canvas.Top="99" Height="21" Name="Button14" Width="24">.</Button>
        </Canvas>
        
        <ListBox Margin="14,238,19,242" Name="ListBox1"
                 Style="{DynamicResource ListBoxStyle}">
            <ListBox.ContextMenu>
                <ContextMenu>
                    <MenuItem Name="OPList_MnuCopy" Header="Copy" />
                    <MenuItem Name="OPList_Paste" Header="Paste" />
                    <Separator Name="OPList_Sepatator1" />
                    <MenuItem Name="OPList_MnuCopyAll" Header="Copy all" />
                    <Separator />
                    <MenuItem Name="OPList_MnuClear" Header="Clear" Click="OPList_MnuClear_Click" /> 
                </ContextMenu>
            </ListBox.ContextMenu>
        </ListBox>
        <Grid Height="48" Name="Grid2" VerticalAlignment="Top">
            <Menu Name="Menu2" FlowDirection="RightToLeft" Background="Transparent" BorderBrush="Transparent">
                <MenuItem x:Name="TopMenu_Repos" Click="TopMenu_Repos_Click">
                    <MenuItem.Header>
                        <Image Stretch="Uniform" Source="Resources\package.png" />
                    </MenuItem.Header>
                </MenuItem>
                <MenuItem x:Name="TopMenu_News" Click="TopMenu_News_Click">
                    <MenuItem.Header>
                        <Image Source="Resources\1247971226_news.png" Name="Image2" />
                    </MenuItem.Header>
                </MenuItem>
            </Menu>
        </Grid>
        <RadioButton Height="17"
                     HorizontalAlignment="Left"
                     Margin="14,72,0,0"
                     Name="RadioButton1"
                     VerticalAlignment="Top"
                     Width="15" 
                     Style="{DynamicResource RadioButtonStyle}">
            RadioButton
        </RadioButton>
        <RadioButton Height="17"
                     HorizontalAlignment="Left"
                     Margin="14,154,0,0"
                     Name="RadioButton2"
                     VerticalAlignment="Top"
                     Width="15"
                     Style="{DynamicResource RadioButtonStyle}">
            RadioButton</RadioButton>
    </Grid>
</Window>
